﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Marca.aspx.cs" Inherits="ForrajeriaFRONT.ABM.Marca" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
   <style type="text/css">
   
       .style1
       {
           width: 100%;
           height: 39px;
       }
   
       .style2
       {
           width: 88px;
           height: 23px;
       }
       .style3
       {
           width: 321px;
           height: 23px;
       }
   
       #TextArea1
       {
           width: 302px;
           height: 73px;
       }
   
       .style7
       {
           width: 23px;
           height: 23px;
       }
       .style8
       {
           height: 23px;
       }
       .style9
       {
           width: 88px;
           height: 29px;
       }
       .style10
       {
           width: 321px;
           height: 29px;
       }
       .style11
       {
           width: 23px;
           height: 29px;
       }
       .style12
       {
           height: 29px;
       }
   
    </style>
   
    </asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
   
    <br/>

    

    <table class="style1" >
        <tr>
            <td class="style2">
                <asp:Label ID="lblNombre" runat="server" Text="Marca: "></asp:Label>
            </td>
            <td class="style3">
                <asp:TextBox ID="txtNombre" runat="server" Width="166px"></asp:TextBox>
            </td>
            <td class="style7">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ErrorMessage="*" ControlToValidate="txtNombre"></asp:RequiredFieldValidator>
            </td>
            <td class="style8">
                <asp:Button ID="btnAgregar" runat="server" Text="Agregar" 
                    onclick="btnAgregar_Click" style="margin-left: 0px" />
                <asp:Label ID="lblResultado" runat="server" Text="Resultado"></asp:Label>
            </td>

        </tr>
        <tr>
        <td class="style9">
            <asp:Label ID="lblDescripcion" runat="server" Text="Descripcion:"></asp:Label>
        </td>
        <td class="style10">
                <asp:TextBox ID="txtDescripcion" runat="server" Width="307px"></asp:TextBox>
        </td>
        <td class="style11">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ErrorMessage="*" ControlToValidate="txtDescripcion"></asp:RequiredFieldValidator>
        </td>
        <td class="style12">
        </td>
        
        </tr>
    </table>

  

    <br/>

    <br/>
     <asp:GridView ID="gridDatos" runat="server"   
            CellPadding="4" ForeColor="#333333" GridLines="None" 
            AutoGenerateColumns="False" Width="100%"
            EnableSortingAndPagingCallbacks="True" 
            onrowdeleting="gridDatos_RowDeleting" 
            onselectedindexchanging="gridDatos_SelectedIndexChanging" onselectedindexchanged="gridDatos_SelectedIndexChanged" 
       >
        
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:BoundField DataField="codigoMarca" HeaderText="Codigo" />
            <asp:BoundField DataField="nombre" HeaderText="Nombre" />
            <asp:BoundField DataField="descripcion" HeaderText="Descripcion" />
            <asp:CommandField ButtonType="Image" CancelText="" InsertText="" NewText="" 
                    SelectText="" UpdateText="" EditText="Editar" 
                    HeaderText="Editar" SelectImageUrl="~/images/modificarABM.jpg" 
                    ShowSelectButton="True" />
            <asp:CommandField ButtonType="Image" CancelText="" 
                    DeleteImageUrl="~/images/borrarABM.jpg" EditText="" InsertText="" NewText="" 
                    SelectText="" ShowDeleteButton="True" UpdateText="" ShowHeader="True" 
                    HeaderText="Quitar" />
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" 
                HorizontalAlign="Center" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#EDEAE4" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
   

    </asp:Content>
